﻿@{
    ViewBag.Title = "Login";
}

<h2>Connexion</h2>

<hr />

@if (ViewBag.error != "")
{
    <div class="alert alert-danger" role="alert">
        @ViewBag.error
    </div>
}

<form action="/Auth/Login" method="Post">
    
    <div class="form-group">
        <label class="control-label col-md-2" style="padding: 8px 0 0 25px">Email :</label>
        <div class="col-md-10">
            <input name="username" value="" type="text" class="form-control"/>
        </div>
    </div>

    <div class="form-group" style="padding-top: 50px;">
        <label class="control-label col-md-2" style="padding: 8px 0 0 25px">Password :</label>
        <div class="col-md-10">
            <input name="password" value="" type="password" class="form-control"/>
        </div>
    </div>

    <div class="form-group" style="padding: 40px 40% 0 40%">
        <input type="hidden" name="ReturnUrl" value="@ViewBag.ReturnUrl"/>
        <a href="/Auth/Create" style="color: inherit; padding-right: 10px"><input type="button" value="Sign Up"/></a>
        <input type="submit" name="Go" value="Login"/>
    </div>

</form>

